package cn.tedu.egmybatis4.mapper;

import cn.tedu.egmybatis4.pojo.entity.Product;
import cn.tedu.egmybatis4.pojo.vo.ProductVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProductMapper {
        int insertProduct(Product product);

        ProductVO selectSingleProduct(int id);
        int deleteById(Long id);

        int deleteByIds(List<Integer> ids);
        int dynamicUpdate(Product product);

        int selectCount();
}
